package com.bot.edu.informationmanage.stumiddlecls.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.bot.edu.informationmanage.stumiddlecls.entity.StuMiddleCls;
import com.bot.edu.informationmanage.stumiddlecls.entity.vo.StuMiddleClsVo;
import com.bot.edu.informationmanage.stumiddlecls.mapper.StuMiddleClsMapper;
import com.bot.edu.informationmanage.stumiddlecls.service.IStuMiddleClsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.List;

/**
 * @Description: 学生班级中间表
 * @Author: jeecg-boot
 * @Date:   2022-04-02
 * @Version: V1.0
 */
@Service
public class StuMiddleClsServiceImpl extends ServiceImpl<StuMiddleClsMapper, StuMiddleCls> implements IStuMiddleClsService {

    @Autowired
    private StuMiddleClsMapper stuMiddleClsMapper;


    @Override
    public IPage<StuMiddleClsVo> pageVo(Page<StuMiddleClsVo> pageList, QueryWrapper<StuMiddleClsVo> wrapper) {
        return stuMiddleClsMapper.pageVo(pageList, wrapper);
    }

    @Override
    public List<StuMiddleClsVo> CheckClsName(String classId) {
        return stuMiddleClsMapper.CheckClsName(classId);
    }

    @Override
    public List<StuMiddleClsVo> getStuList(String classId) {
        return stuMiddleClsMapper.getStuList(classId);
    }

    @Override
    public List<StuMiddleCls> getNoClsId(String classId) {
        return stuMiddleClsMapper.getNoClsId(classId);
    }

}
